package components.scanario.elements
{
	import classes.Commands.c_baseCommand;
	
	import components.scanario.c_scenarioManager;
	import components.scanario.scenaries.c_baseScenario;

	public class c_commandElem extends c_scenarioElem {
		private var _commandClass: Class;
		public function c_commandElem(a_sm: c_baseScenario, a_commandClass: Class, a_description:String) {
			super(a_sm, a_description);
			_commandClass = a_commandClass;
		}
		
		override protected function doCheck(obj: Object): Boolean {
			return obj.command is _commandClass;
		}
	}
}